<%@page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@page language="java" import="com.easywan.vo.BaseUsers" %>
	<!-- 导航开始 -->
	<nav class="navbar navbar-default" style="margin-bottom: 0px;">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="/index.html">轻松玩</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li class="active"><a href="#">工具 <span class="sr-only">(current)</span></a></li>
        <!-- <li><a href="#">Link</a></li> -->
       <!--  <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">图片/视频<span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="\image\imagePress.html">图片压缩</a></li>
            <li><a href="\image\videoDes.html">视频加密/解密</a></li>
            <li role="separator" class="divider"></li>
          </ul>
        </li>
         <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">衣服 <span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="\clothes\clothesSize.html">尺寸计算</a></li>
          </ul>
        </li> -->
      </ul>
      <ul class="nav navbar-nav navbar-right">
      	<% Object obj = request.getSession().getAttribute("users");
    		if(obj == null){
      	%>
      	<li><a href="/register.html">注册</a></li>
        <li><a href="/login.html">登录</a></li>
        <%}else{  BaseUsers users = (BaseUsers)obj; %> 
       		<li><a href="/users/index.html">
       	<% out.print(users.getName()); %>
       		</a></li>
       	<%  } %>
        	
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">分享 <span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="#">QQ</a></li>
            <li><a href="#">微信</a></li>
            <li><a href="#">新浪博客</a></li>
          </ul>
        </li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>
<!-- 导航结束 -->